package com.zy.feign.caller.controller;

import com.zy.feign.caller.service.FeignTestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("feign")
public class FeignTestController {

    @Resource
    private FeignTestService feignTestService;

    @RequestMapping("getData")
    public String getData(String msg) {
        Map<String, Object> data = feignTestService.getData(msg);
        return data.toString();
    }
}
